package com.example.a02back.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author SimpChaos
 * @since 2022-07-11
 */
public class Trade implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 商品ID
     */
    @TableId(value = "sId", type = IdType.INPUT)
    private String sid;

    /**
     * 商品所属用户ID
     */
    @TableField(value = "uid")
    private String uid;

    /**
     * 商品标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 商品信息
     */
    @TableField(value = "info")
    private String info;

    /**
     * 商品图片
     */
    @TableField(value = "image")
    private String image;

    /**
     * 交易者ID
     */

    @TableField(value = "swapper")
    private String swapper;

    /**
     * 是否不开放，0为正常，1为完成了
     */
    @TableField(value = "isClosed")
    private Integer isclosed;

    /**
     * 创建时间
     */
    @TableField(value = "createTime")
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @TableField(value = "updateTime")

    private LocalDateTime updateTime;

    /**
     * 是（1）悬赏令还是（2）商品
     */
    @TableField(value = "trade_type")
    private Integer tradeType;

    /**
     * 0到6，0为all
     */
    @TableField(value = "type")
    private Integer type;

    /**
     * 悬赏令截止时间
     */
    @TableField(value = "deadline")
    private String  deadline;

    /**
     * 封面
     */
    @TableField(value = "imageFirst")

    private String imageFirst;

    /**
     * 价格
     */
    @TableField(value = "price")

    private Integer price;

    /**
     *  是否取消,0为正常，1为被取消了
     */
    @TableField(value = "isCancel")
    private Integer isCancel;



    public String getImageFirst() {
        return imageFirst;
    }

    public void setImageFirst(String imageFirst) {
        this.imageFirst = imageFirst;
    }
    public String getSid() {
        return sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }
    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }
    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }
    public String getSwapper() {
        return swapper;
    }

    public void setSwapper(String swapper) {
        this.swapper = swapper;
    }
    public Integer getIsclosed() {
        return isclosed;
    }

    public void setIsclosed(Integer isclosed) {
        this.isclosed = isclosed;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
    public Integer getTradeType() {
        return tradeType;
    }

    public void setTradeType(Integer tradeType) {
        this.tradeType = tradeType;
    }
    public String getDeadline() {
        return deadline;
    }

    public void setDeadline(String deadline) {
        this.deadline = deadline;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public Integer getIsCancel() {
        return isCancel;
    }

    public void setIsCancel(Integer isCancel) {
        this.isCancel = isCancel;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    public String toString() {
        return "Trade{" +
            "sId=" + sid +
            ", uid=" + uid +
            ", title=" + title +
            ", info=" + info +
            ", image=" + image +
            ", swapper=" + swapper +
            ", isClosed=" + isclosed +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
            ", tradeType=" + tradeType +
            ", deadline=" + deadline +
        "}";
    }
}
